#ifndef _COMMON_H
#define _COMMON_H
#include "cocos2d.h"
using namespace cocos2d;



unsigned int get_current_msec();
const char* G2U(const char* gb2312)  ;
void PlayEffect(const char * pszMusic);

#define max(a,b)    (((a) > (b)) ? (a) : (b))
#define min(a,b)    (((a) < (b)) ? (a) : (b))

#define MUSIC_BG  "bg_music.wav"
#define MUSIC_CLICK  "click.wav"
#define MUSIC_MATCH "match.wav"
#define MUSIC_RESTART "begin.wav"
#define MUSIC_EXCELLENT  "excellent.wav"
#define MUSIC_DONE "end.wav"
#define MUSIC_WRONG "wrong.wav"

#define PIC_DIALOG	"dlg_bg_new.png"
#define PIC_BG "bg_game.png"
#define PIC_LEVEL "level.png"
#define PIC_LOCK "lock2.png"
#define PIC_UNLOCK "unlock2.png"
#define PIC_B_EVEN "b_even.png"
#define PIC_B_ODD  "b_odd.png"
#define PID_DOT "img_dot.png"
#define PIC_WRONG "img_wrong.png"

#define FNT_FILE "bitmap.fnt"
#define BTN_ONE "btn_one.png"
#define BTN_TWO "btn_two.png"
#define BTN_ONE_L "btn_one_long.png"
#define BTN_TWO_L "btn_two_long.png"
#define BTN_ONE_SM "btn_one_small.png"
#define BTN_TWO_SM "btn_two_small.png"
#define PIC_PORCESS_BG "bg_time_bar_process.png"
#define PIC_PORCESS_CLC "color_proces.png"

#define CLC_BLUE ccc3(192,14,235)
#define CLC_YELLOW ccc3(255,215,0)
#define CLC_FIRE ccc3(178,34,34)
#define CLC_DLG ccc3(255,255,0)
#endif
